package _12excel;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.List;

/**
 * @description:
 * @author: wang zhen
 * @create: 2023-04-26 13:18
 */
public class BearAlgoExcelListener extends AnalysisEventListener<BearAlgoExcelVO> {

    private List data;
    public BearAlgoExcelListener(List data){
        this.data=data;
    }
    @Override
    public void invoke(BearAlgoExcelVO bearAlgoExcelVO, AnalysisContext analysisContext) {
        //System.out.println(bearAlgoExcelVO);
        data.add(bearAlgoExcelVO);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
